package com.huang.spring.mapper;

import com.huang.spring.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface UserMapper {
//查询所有数据
    List<UserInfo> getAll();
    @Select("select *from demo_user where name=#{name}")
    List<UserInfo> getByName(String name);




}
